package com.t174.car.service.impl;

import com.t174.car.dao.UserInfoDao;
import com.t174.car.dao.UserRoleDao;
import com.t174.car.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserInfoDao userInfoDao;
    @Autowired
    private UserRoleDao userRoleDao;
    @Override
    public int delUser(Integer[] ids) {
        int count = userRoleDao.delUserRole(ids);
        count = userInfoDao.delUser(ids);
        return count;
    }
}
